package com.easy.merchants.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.easy.merchants.pojo.HouseInformation;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface MerchantsMapper extends BaseMapper<HouseInformation> {

    /**
     * 通过id删除房屋信息
     *
     * @param id id
     * @return int
     */
    public int deleteHouseInformationById(Long id);

    /**
     * 通过id删除房子图片
     *
     * @param rid rid
     * @return int
     */
    public int deleteHouseImgById(Long rid);

    /**
     * 通过id删除房屋设施
     *
     * @param rid rid
     * @return int
     */
    public int deleteHouseFacilityById(Long rid);

    /**
     * 更新房子状态
     *
     * @param houseInformation 房子信息
     * @return int
     */
    public int updateHouseStatus(HouseInformation houseInformation);

}
